package com.chinamobile.maps.util;

import java.util.HashMap;
import java.util.UUID;

/**
 * @ClassName:   GenerateUuid
 * @Description: 生成UUID
 * @author:      frankwong
 * @date:        2012-6-4 上午12:10:58
 *
 */
public class GenerateUuid {

	/**
	 * @Title:       generateUuid
	 * @Description: 生成UUID
	 * @return:      String   
	 * @throws
	 */
	public static String generateUuid() {
		String uuidStr = UUID.randomUUID().toString();
		return uuidStr.substring(0, 8) + uuidStr.substring(9, 13)
				+ uuidStr.substring(14, 18) + uuidStr.substring(19, 23)
				+ uuidStr.substring(24);
	}
	public static HashMap<String, String> microRegionMap;

	static {
		microRegionMap = new HashMap<String, String>();
		microRegionMap.put("2", "玄武白下");
		microRegionMap.put("3", "秦淮雨花");
		microRegionMap.put("4", "鼓楼建邺");
		microRegionMap.put("5", "下关栖霞");
		microRegionMap.put("6", "江宁");
		microRegionMap.put("7", "浦口");
		microRegionMap.put("8", "六合");
		microRegionMap.put("9", "溧水");
		microRegionMap.put("10", "高淳");
	}
}
